home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: identd@ix.netcom.com(none )
- Newsgroups: comp.lang.c
- Subject: Re: Help on:Printing to Printer from within c / c++ program
- Date: 11 Apr 1996 23:53:46 GMT
- Organization: Netcom
- Message-ID: <4kk62a$csh@dfw-ixnews4.ix.netcom.com>
- References: <316a58d0.5945808@nntp.ix.netcom.com> <4kjqjf$3g5@nadine.teleport.com>
- NNTP-Posting-Host: sea-wa11-16.ix.netcom.com
- X-NETCOM-Date: Thu Apr 11 6:53:46 PM CDT 1996
-
- In <4kjqjf$3g5@nadine.teleport.com> GHouck <hksys@teleport.com> writes:
-
- >
- >cmalinow@ix.netcom.com (Chris Malinowski) wrote:
- >>Newbie requires help.
- >>Trying to read in a seq file from disk, and print on the printer.
- >>OPEN of input file works ok, but am having difficulty opening the
- >>output file as the printer device.
- >>System is Dos/ Windows 3.1
- >>Borland c++ 3.1
- >>Redirect is out of the question, must perform the file open from
- >>withing the progam.
- >>
- >Chris,
- >
- >Since you're using DOS/Windows, you should be able to fopen and
- >fprintf to the device called 'PRN' or 'LPT1,2,...' If I remember
- >correctly, there is also a standard device called 'stdprn', analogous
- >to the streams for 'stdin', 'stdout', 'stderr' . Perhaps not.
- >Yours, Geoff Houck
- >
-
- you are correct. fopen() to open the file and fprintf with stdprn as
- the stream will do it.
-
- tyler
-
-
-